package com.example.zhihu.dao;

import com.example.zhihu.entity.User;
import com.example.zhihu.vo.UserVo;
import java.util.List;
import java.util.Set;
import org.apache.ibatis.annotations.Mapper;

/**
 * Description
 *
 * @author : Charles
 * @date : 2020/1/17
 */
@Mapper
public interface UserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    UserVo selectVoByPrimaryKey(Integer id);

    List<UserVo> selectAll();

    Set<String> selectPermissionByroleId(Integer roleid);

    Set<String> selectRolesByroleId(Integer id);
}
